package com.ehotting.edsta.circuitDesign.generator.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 规则脚本
 * @TableName es_rule_script
 */
public class EsRuleScript implements Serializable {
    /**
     * 脚本编号
     */
    private Long id;

    /**
     * 场景编号
     */
    private Long scene_id;

    /**
     * 场景类型
     */
    private Integer scene_type;

    /**
     * 脚本名称
     */
    private String name;

    /**
     * 脚本内容
     */
    private String content;

    /**
     * 脚本类型
     */
    private Integer type;

    /**
     * 状态(1:可用0:不可用)
     */
    private Integer state;

    /**
     * 插入时间
     */
    private Date insert_time;

    /**
     * 序号
     */
    private Integer priority;

    private static final long serialVersionUID = 1L;

    /**
     * 脚本编号
     */
    public Long getId() {
        return id;
    }

    /**
     * 脚本编号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 场景编号
     */
    public Long getScene_id() {
        return scene_id;
    }

    /**
     * 场景编号
     */
    public void setScene_id(Long scene_id) {
        this.scene_id = scene_id;
    }

    /**
     * 场景类型
     */
    public Integer getScene_type() {
        return scene_type;
    }

    /**
     * 场景类型
     */
    public void setScene_type(Integer scene_type) {
        this.scene_type = scene_type;
    }

    /**
     * 脚本名称
     */
    public String getName() {
        return name;
    }

    /**
     * 脚本名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 脚本内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 脚本内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 脚本类型
     */
    public Integer getType() {
        return type;
    }

    /**
     * 脚本类型
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 状态(1:可用0:不可用)
     */
    public Integer getState() {
        return state;
    }

    /**
     * 状态(1:可用0:不可用)
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 插入时间
     */
    public Date getInsert_time() {
        return insert_time;
    }

    /**
     * 插入时间
     */
    public void setInsert_time(Date insert_time) {
        this.insert_time = insert_time;
    }

    /**
     * 序号
     */
    public Integer getPriority() {
        return priority;
    }

    /**
     * 序号
     */
    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EsRuleScript other = (EsRuleScript) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getScene_id() == null ? other.getScene_id() == null : this.getScene_id().equals(other.getScene_id()))
            && (this.getScene_type() == null ? other.getScene_type() == null : this.getScene_type().equals(other.getScene_type()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getInsert_time() == null ? other.getInsert_time() == null : this.getInsert_time().equals(other.getInsert_time()))
            && (this.getPriority() == null ? other.getPriority() == null : this.getPriority().equals(other.getPriority()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getScene_id() == null) ? 0 : getScene_id().hashCode());
        result = prime * result + ((getScene_type() == null) ? 0 : getScene_type().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getInsert_time() == null) ? 0 : getInsert_time().hashCode());
        result = prime * result + ((getPriority() == null) ? 0 : getPriority().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", scene_id=").append(scene_id);
        sb.append(", scene_type=").append(scene_type);
        sb.append(", name=").append(name);
        sb.append(", content=").append(content);
        sb.append(", type=").append(type);
        sb.append(", state=").append(state);
        sb.append(", insert_time=").append(insert_time);
        sb.append(", priority=").append(priority);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}